package com.climb.moive.dao;

import com.climb.moive.entity.MovieReview;

import java.sql.SQLException;
import java.util.List;

public interface MovieReviewDao {
    /**文章总数*/
    Integer count() throws SQLException;
    /**某会员文章总数*/
    Integer countById(Integer id) throws SQLException;
    /**根据用户的id删除*/
    Integer delet(Integer mid)throws SQLException;

    /*文章的删查*/
    /**删除某文章*/
    Integer deletByReviewId(Integer rid)throws SQLException;

    /**查询某文章详情*/
    MovieReview findRevieByRid(Integer rid)throws SQLException;

    /**获取文章列表*/
    List<MovieReview> findAllMovieReview()  throws SQLException;

    List<MovieReview> findReviewByMoiveid(Integer id) throws SQLException;

    Integer saveMovieReview(MovieReview movieReview) throws SQLException;

    List<MovieReview> findReviewByMemberId(Integer id) throws SQLException;
}
